<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject//blank_grade_concession_warn/Blank_Grade_Concession_warn.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject//blank_grade_concession_warn/Blank_Grade_Concession_warn.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Blank_Grade_Concession_warn",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "材料性能让步预警",
                name: "/blank_grade_concession_warn/Blank_Grade_Concession_warn",
                newTabEdit: false,
                url: "/Blank_Grade_Concession_warn/",
                sortName: "Id"
            });
            const editFormFields = ref({"ProductId":"","BlankLotName":"","BrReal":"","HcjReal":"","BrStandard":"","HcjStandard":"","BrConcession":"","HcjConcession":"","InspectionTime":"","Remarks":""});
            const editFormOptions = ref([[{"title":"产品代码","field":"ProductId"},
                               {"title":"炉号","field":"BlankLotName"}],
                              [{"title":"常温Br（实测值）","field":"BrReal","type":"decimal"},
                               {"title":"常温Hcj（实测值）","field":"HcjReal","type":"decimal"}],
                              [{"title":"常温Br（标准值）","field":"BrStandard"},
                               {"title":"常温Hcj（标准值）","field":"HcjStandard"}],
                              [{"title":"常温Br（让步值）","field":"BrConcession"},
                               {"title":"常温Hcj（让步值）","field":"HcjConcession"}],
                              [{"title":"检测日期","field":"InspectionTime"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({"ProductId":"","BlankLotName":"","BrReal":"","HcjReal":"","BrStandard":"","HcjStandard":"","BrConcession":"","HcjConcession":"","InspectionTime":"","IsWarn":""});
            const searchFormOptions = ref([[{"title":"产品代码","field":"ProductId"},{"title":"炉号","field":"BlankLotName"},{"title":"常温Br（实测值）","field":"BrReal","type":"decimal"},{"title":"常温Hcj（实测值）","field":"HcjReal","type":"decimal"},{"title":"常温Br（标准值）","field":"BrStandard"}],[{"title":"常温Hcj（标准值）","field":"HcjStandard"},{"title":"常温Br（让步值）","field":"BrConcession"},{"title":"常温Hcj（让步值）","field":"HcjConcession"},{"title":"检测日期","field":"InspectionTime"},{"title":"已预警","field":"IsWarn"}]]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"center"},
                       {field:"ProductId",title:"产品代码",type:"string",sort:true,width:140,showOverflowTooltip:true,align:"center"},
                       {field:"BlankLotName",title:"炉号",type:"string",sort:true,width:80,showOverflowTooltip:true,align:"center"},
                       {field:"BrReal",title:"常温Br（实测值）",type:"decimal",sort:true,width:165,showOverflowTooltip:true,align:"center"},
                       {field:"HcjReal",title:"常温Hcj（实测值）",type:"decimal",sort:true,width:165,showOverflowTooltip:true,align:"center"},
                       {field:"BrStandard",title:"常温Br（标准值）",type:"string",sort:true,width:165,showOverflowTooltip:true,align:"center"},
                       {field:"HcjStandard",title:"常温Hcj（标准值）",type:"string",sort:true,width:165,showOverflowTooltip:true,align:"center"},
                       {field:"BrConcession",title:"常温Br（让步值）",type:"string",sort:true,width:165,showOverflowTooltip:true,align:"center"},
                       {field:"HcjConcession",title:"常温Hcj（让步值）",type:"string",sort:true,width:165,showOverflowTooltip:true,align:"center"},
                       {field:"InspectionTime",title:"检测日期",type:"datetime",sort:true,width:110,showOverflowTooltip:true,align:"center"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"center"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"center"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"center"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"QualityStatus",title:"质量状态",type:"string",sort:true,width:120,showOverflowTooltip:true,align:"center"},
                       {field:"IsWarn",title:"已预警",type:"string",sort:true,width:120,showOverflowTooltip:true,align:"center"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
